<template>
  <div class="icons-wrapper">
    <category-icons-sub
      v-for="item of fieldsList"
      :key="item.id"
      :bgColor="item.bgColor"
      :iconText="item.iconText"
      :icon="item.icon"
      :field="item.field"
    ></category-icons-sub>
  </div>
</template>

<script>
import CategoryIconsSub from "./Sub";
import fieldsDatas from "data/fields";
export default {
  name: "CategoryIcons",
  components: {
    CategoryIconsSub
  },
  data() {
    return {
      fieldsList: fieldsDatas
    };
  }
};
</script>

<style lang="scss" scoped>
@import "~styles/mixins.scss";

.icons-wrapper {
  @include flex-row;
  flex-wrap: wrap;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
</style>
